package com.youngjun.user.mapper;

import com.youngjun.common.mybatis.mapper.support.BaseMapper;
import com.youngjun.user.pojo.domain.AllowAccessFunctionRole;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AllowAccessFunctionRoleMapper extends BaseMapper<AllowAccessFunctionRole> {

    /**
     * 根据功能id删除关系
     * @param functionId 功能id
     */
    void deleteWithLogicByFunctionId(Long functionId);

    /**
     * 根据角色id删除关系
     * @param roleId 角色id
     */
    void deleteWithLogicByRoleId(Long roleId);


}